{include file="public:header" /}
<!--添加文章-->
<form id="info_form" action="{:url('Announce/addDo')}" method="post" enctype="multipart/form-data">
<div class="pad_lr_10">
	<div class="col_tab">
		<ul class="J_tabs tab_but cu_li">
			<li class="current">基本信息</li>
		</ul>
		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">

		            <tr>
						<th>标题 :</th>
						<td>
							<input type="text" name="title" id="J_title" class="input-text" size="50">
					    </td>
					</tr>
                    <tr>
                        <th>有效期:</th>
                        <td><input type="text" name="timeout" id="timeout" onclick="myCalendar();" class="date" size="30" /></td>
                    </tr>

					<tr>
						<th>状态 :</th>
		 				<td>
		                	<label><input type="radio" name="status" class="radio_style" value="1" checked="checked"> 发布 </label>&nbsp;&nbsp;
							<label><input type="radio" name="status" class="radio_style" value="0" > 待审</label>
						</td>
					</tr>

		            <tr>
						<th>详细内容 :</th>
		                <td><script id="info" name="info" type="text/plain"></script></td>
					</tr>
				</table>
			</div>

        </div>
		<div class="mt10"><input type="submit" value="提交" id="dosubmit" name="" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
	</div>
</div>
</form>
{include file="public:footer" /}
<script src="__PUBLIC__/js/calendar/WdatePicker.js" charset="utf-8"></script>
<script>
	function myCalendar(id){
		WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',el:id});
	}
    $(function() {
        $.formValidator.initConfig({formid:"info_form",autotip:true});
        $("#J_title").formValidator({onshow:'请填写标题',onfocus:'请填写标题'}).inputValidator({min:1,onerror:'请填写标题'});
    });
</script>
<script src="__PUBLIC__/js/ueditor/ueditor.config.js"></script>
<script src="__PUBLIC__/js/ueditor/ueditor.all.min.js"></script>
<script src="__PUBLIC__/js/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
	window.UEDITOR_HOME_URL='__PUBLIC__/js/ueditor/';
	window.onload=function(){
		window.UEDITOR_CONFIG.initialFrameWidth=880;
		window.UEDITOR_CONFIG.initialFrameHeight=500;
		UE.getEditor('info');
	}
</script>
</body>
</html>